import request from "@/utils/request";
//获取微心愿所有分类
export function postUploadImg(data) {
  return request({
    url: "/api/file/uploadImg",
    method: "post",
    data,
  });
}

//获取微心愿所有分类
export function postAllTypes(data) {
  return request({
    url: "/api/wxy/allTypes",
    method: "post",
    data,
  });
}

//首页随机获取N条微心愿
export function postListRand(data) {
  return request({
    url: "/api/wxy/listRand",
    method: "post",
    data,
  });
}

//获取微心愿广场列表
export function postWxyList(data) {
  return request({
    url: "/api/wxy/list",
    method: "post",
    data,
  });
}
//获取广场微心愿详情
export function postWxyDetail(data) {
  return request({
    url: "/api/wxy/detail",
    method: "post",
    data,
  });
}
//认领微心愿事件
export function postWxyAccept(data) {
  return request({
    url: "/api/wxy/accept",
    method: "post",
    data,
  });
}
//完成微心愿事件
export function postWxyFinish(data) {
  return request({
    url: "/api/wxy/finish",
    method: "post",
    data,
  });
}
//添加微心愿事件
export function postWxyAdd(data) {
  return request({
    url: "/api/wxy/add",
    method: "post",
    data,
  });
}
//编辑微心愿事件
export function postWxyEdit(data) {
  return request({
    url: "/api/wxy/edit",
    method: "post",
    data,
  });
}
//获取我的微心愿列表
export function postWxyMyList(data) {
  return request({
    url: "/api/wxy/myList",
    method: "post",
    data,
  });
}
//获取我的微心愿详情
export function postWxyMyDetail(data) {
  return request({
    url: "/api/wxy/myDetail",
    method: "post",
    data,
  });
}
//恢复已经撤消的微心愿
export function postWxyRecover(data) {
  return request({
    url: "/api/wxy/recover",
    method: "post",
    data,
  });
}
//撤消我的微心愿
export function postWxyCancel(data) {
  return request({
    url: "/api/wxy/cancel",
    method: "post",
    data,
  });
}
//删除我的微心愿事件
export function postWxyDel(data) {
  return request({
    url: "/api/wxy/del",
    method: "post",
    data,
  });
}
//微心愿事件反馈
export function postWxyFeedback(data) {
  return request({
    url: "/api/wxy/feedback",
    method: "post",
    data,
  });
}
//获取我认领的微心愿列表
export function postWxyMyAcceptList(data) {
  return request({
    url: "/api/wxy/myAcceptList",
    method: "post",
    data,
  });
}
//获取光荣榜信息
export function postWxyHonourList(data) {
  return request({
    url: "/api/wxy/honourList",
    method: "post",
    data,
  });
}
